package com.ys.nms.module.business.controller.admin.sysLog.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import jakarta.validation.constraints.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 系统日志新增/修改 Request VO")
@Data
public class SysLogSaveReqVO {

    @Schema(description = "设备ID", example = "2923")
    private Integer deviceId;

    @Schema(description = "设施类型")
    private String facility;

    @Schema(description = "日志优先级数值")
    private String priority;

    @Schema(description = "日志严重性等级")
    private String level;

    @Schema(description = "日志的标签")
    private String tag;

    @Schema(description = "日志接收到的时间戳", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "日志接收到的时间戳不能为空")
    private LocalDateTime timestamp;

    @Schema(description = "生成日志的程序或进程名称，例如")
    private String program;

    @Schema(description = "日志的原始消息内容")
    private String msg;

    @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED)
    private Long seq;

}